-
Notifications
You must be signed in to change notification settings - Fork 14
[#H24] Docker_Flask_HW #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Chudopal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нужны небольшие правки по оформлению и по логике немного
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| app.run(debug=True, host='0.0.0.0', port=5000) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в коцне нужно оставлять одну пустую строку, такие вот правила оформления приняты. Просмотри все свои файлы и исправь, там где нет пустой строки в конце
| password = hash_md5(account.get("password")) | ||
| saved_password = data.get("password") | ||
| saved_email = data.get("email") | ||
| if password == saved_password and email == saved_email: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в если условие не срабатывает то возвращаем None? Не надо так, лучше всегда что-то возвращать, например сообщение какое-то или типа того
No description provided.